/* ===== Fremada Gold — Homepage Styles ===== */

:root {
  /* ===== Fremada brand palette =====
     Three canvas tones (white / ivory / cream) give the page rhythm without
     losing the heritage warmth. Cordovan replaces black for dark sections —
     warmer, more "old-world jewelry," reads luxurious not corporate.
     Gold remains the only accent, used sparingly. */

  --white:           #FFFFFF;     /* surface: cards, About prose */
  --ivory:           #FBF8F1;     /* primary canvas — warmer than white, calmer than cream */
  --cream:           #F2EAD7;     /* featured warm canvas — heritage moments */
  --cream-dark:      #E8DCC4;     /* accent border / hover */

  --gold:            #A8884E;     /* brand accent — links, eyebrows */
  --gold-dark:       #856730;     /* AA-compliant gold for text-sized accents */

  --cordovan:        #3D2818;     /* anchor (dark): footer + accent badge — warm not cold */
  --ink:             #1F1A14;     /* body text — warm near-black */
  --ink-soft:        #4A4138;
  --muted:           #6B5640;     /* secondary text — walnut, warmer than gray */
  --border:          #E0D4BC;     /* hairlines, dividers */
  --hairline:        rgba(31, 26, 20, 0.12);

  /* Legacy aliases — older CSS rules reference these */
  --cream-light:     #FBF8F1;     /* now ivory */
  --footer-bg:       #3D2818;     /* now cordovan */

  --serif:           'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Visually-hidden but accessible to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* Keyboard-visible focus ring — accessible without being intrusive */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible {
  outline-offset: 4px;
}
.card a:focus-visible {
  outline-offset: -2px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.4em 0;
  letter-spacing: -0.012em;
  line-height: 1.15;
}
.section-title { font-weight: 500; }

/* Prevent widow/orphan single-word lines on short headlines, subtitles, and body copy */
h1, h2, h3, h4,
.section-subtitle,
.brand-hero-headline,
.brand-hero-sub,
.heritage-headline,
.heritage-sub,
.about-eyebrow,
.about-lead,
.tagline-sub,
.card-description,
.footer-brand,
.footer-compliance p {
  text-wrap: balance;
}

/* ===== Brand Hero ===== */
.brand-hero {
  background: var(--ivory);
  padding: 40px 0 56px;
}
.brand-hero-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.brand-hero-text {
  max-width: 640px;
  text-align: center;
  margin: 0 auto;
}
.brand-hero-logo {
  display: inline-block;
  margin: 0 auto 10px;
}
.brand-hero-logo img {
  width: 130px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.brand-hero-sub { margin-left: auto; margin-right: auto; }
.brand-hero-ctas { justify-content: center; }
.tagline-sub {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  margin: 0;
  text-transform: uppercase;
  line-height: 1.4;
}
.brand-hero-eyebrow { margin: 0 0 16px 0; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold-dark);
  margin: 0 0 14px 0;
  text-transform: uppercase;
}
.brand-hero-headline {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 20px 0;
}
.brand-hero-sub {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 auto 32px;
  max-width: 540px;
}
.brand-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.brand-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 18px 40px -22px rgba(60, 40, 20, 0.22);
}
@media (min-width: 900px) {
  .brand-hero-row {
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
  }
  .brand-hero-headline { font-size: 48px; }
  .brand-hero { padding: 52px 0 72px; }
  .brand-hero-logo img { width: 150px; }
}
@media (max-width: 720px) {
  .brand-hero-headline { font-size: 34px; }
  .brand-hero-sub { font-size: 17px; margin-left: auto; margin-right: auto; }
  .brand-hero-text { text-align: center; margin-left: auto; margin-right: auto; }
  .brand-hero-logo img { margin-left: auto; margin-right: auto; }
  .brand-hero-ctas { flex-direction: column; align-items: center; }
  .brand-hero-ctas .btn { width: 100%; max-width: 320px; text-align: center; }
}

/* ===== Heritage Strip (also used as Event/Trade-Show Strip) ===== */
.event-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #D4B26A;
  text-transform: uppercase;
  margin: 0 0 16px 0;
}
.heritage-strip {
  background: var(--cordovan);
  border-top: 1px solid rgba(168, 136, 78, 0.25);
  border-bottom: 1px solid rgba(168, 136, 78, 0.25);
  padding: 44px 0;
  text-align: center;
  position: relative;
}
.heritage-strip::before,
.heritage-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(168, 136, 78, 0.45) 30%, rgba(168, 136, 78, 0.45) 70%, transparent 100%);
}
.heritage-strip::before { top: 6px; }
.heritage-strip::after  { bottom: 6px; }
.heritage-headline {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.25;
  color: var(--ivory);
  max-width: 820px;
  margin: 0 auto 10px;
  letter-spacing: -0.01em;
}
.heritage-sub {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(251, 248, 241, 0.72);
  text-transform: none;
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .heritage-headline { font-size: 36px; }
  .heritage-strip { padding: 56px 0; }
  .heritage-sub { font-size: 19px; }
}
@media (max-width: 720px) {
  .heritage-headline { font-size: 22px; }
  .heritage-strip { padding: 36px 0; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--cordovan);
  color: var(--ivory);
}
.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--ivory);
}
.btn-secondary {
  background: transparent;
  color: var(--cordovan);
  border-color: var(--cordovan);
}
.btn-secondary:hover {
  background: var(--cordovan);
  color: var(--ivory);
}

/* ===== Section titles ===== */
.section-title {
  font-size: 40px;
  text-align: center;
  margin-top: 0;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  font-style: italic;
  font-family: var(--serif);
  line-height: 1.45;
  max-width: 54ch;
  margin: 0 auto 56px;
}
@media (max-width: 720px) {
  .section-title { font-size: 30px; }
  .section-subtitle { font-size: 16px; margin-bottom: 40px; }
}
.section-title-compact {
  font-size: 30px;
}
@media (max-width: 720px) {
  .section-title-compact { font-size: 24px; }
}

/* ===== Collections grid ===== */
.collections {
  padding: 72px 0 80px;
  background: var(--ivory);
}
@media (max-width: 720px) {
  .collections { padding: 56px 0 64px; }
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -24px rgba(70, 50, 25, 0.28);
  border-color: var(--cream-dark);
}
.card-image {
  width: 100%;
  aspect-ratio: 4 / 5;        /* portrait — chains fill the card top section */
  object-fit: cover;
  object-position: center;
}
.card-body {
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 240px;          /* equalises card heights across the row */
}
.card-title {
  font-size: 24px;
  margin-bottom: 12px;
  line-height: 1.2;
  min-height: 2.4em;          /* reserves 2 lines so 1-line and 2-line titles align across cards */
}
.card-description {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  flex-grow: 1;
  margin: 0 0 22px;
}
.card-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-top: auto;
}
.card-link:hover { color: var(--gold); }

/* ===== NEW badge on featured card ===== */
.card-badge-new {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--cordovan);
  color: var(--cream-light);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 2px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(31, 26, 20, 0.18);
}

/* ===== About ===== */
.about {
  background: var(--cream);
  padding: 72px 0 80px;
}
.about-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 50px -25px rgba(60, 40, 20, 0.25);
}
.about-text {
  max-width: 560px;
}
.about .section-title {
  font-size: 36px;
  text-align: left;
  margin-bottom: 10px;
}
.about-eyebrow {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 28px 0;
  letter-spacing: 0.01em;
  text-align: left;
}
.about-lead {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 20px 0;
  text-align: left;
}
.about-lead:last-of-type { margin-bottom: 0; }
.about-credentials-block {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.about-badges {
  display: grid;
  grid-template-columns: repeat(2, auto);
  align-items: center;
  justify-items: center;
  justify-content: center;
  column-gap: 28px;
  row-gap: 18px;
  margin-bottom: 18px;
}
.about-badges .about-badge {
  height: 36px;
  width: auto;
  display: block;
  background: transparent;
  max-width: 100%;
}
@media (min-width: 600px) {
  .about-badges {
    grid-template-columns: repeat(4, auto);
    row-gap: 0;
    column-gap: 36px;
  }
  .about-badges .about-badge { height: 48px; }
}
.about-credential {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 0;
}
@media (min-width: 900px) {
  .about-row {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
  }
}
@media (max-width: 720px) {
  .about { padding: 56px 0 64px; }
  .about .section-title { font-size: 30px; text-align: center; }
  .about-eyebrow { font-size: 16px; margin-bottom: 28px; text-align: center; }
  .about-lead { font-size: 17px; text-align: left; }
  .about-text { max-width: 100%; }
}

/* ===== Contact ===== */
.contact {
  padding: 40px 0;
  background: var(--cream-light);
}
@media (max-width: 720px) {
  .contact { padding: 56px 0 64px; }
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 600px) {
  .contact-grid { gap: 36px; }
}
.contact-item h4 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 8px;
}
@media (min-width: 600px) {
  .contact-item h4 { font-size: 11px; letter-spacing: 0.2em; margin-bottom: 12px; }
}
.contact-item a, .contact-item address {
  font-family: var(--serif);
  font-size: 13px;
  font-style: normal;
  color: var(--ink);
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}
.contact-item a[href^="tel:"] { white-space: nowrap; }
@media (min-width: 420px) {
  .contact-item a, .contact-item address { font-size: 14px; }
}
@media (min-width: 600px) {
  .contact-item a, .contact-item address { font-size: 17px; }
}
.contact-item a:hover { color: var(--gold-dark); }

/* ===== Footer ===== */
.site-footer {
  background: var(--footer-bg);
  color: rgba(250, 245, 237, 0.65);
  padding: 32px 0;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(168, 136, 78, 0.35);
}
.footer-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.footer-brand {
  margin: 0;
  font-family: var(--serif);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.footer-links a {
  color: rgba(250, 245, 237, 0.75);
  font-size: 13px;
}
.footer-links a:hover { color: var(--gold); }
@media (min-width: 768px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 32px;
  }
}
.footer-compliance {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(250, 245, 237, 0.08);
}
.footer-compliance p {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(250, 245, 237, 0.5);
  text-align: center;
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Landscape phones (short viewport) — compact hero so content shows ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .brand-hero { padding: 24px 0 28px; }
  .brand-hero-row { gap: 20px; }
  .brand-hero-logo img { width: 110px; }
  .brand-hero-headline { font-size: 28px !important; }
  .brand-hero-sub { font-size: 15px; margin-bottom: 20px; }
  .heritage-strip { padding: 28px 0 !important; }
  .heritage-headline { font-size: 22px !important; }
  .heritage-sub { font-size: 16px !important; }
  .event-eyebrow { margin-bottom: 10px; }
}

/* ===== Reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover { transform: none; }
}
