/* ==========================================================================
   Gemsparx × Ayala Jewelers — landing page
   Built from Figma frame "Gemsparx_Ayala_Figma_Ready_Editable_1_" (1440px)
   ========================================================================== */

:root {
  /* Colors (from Figma) */
  --navy: #0b2235;
  --navy-deep: #071d2e;
  --slate: #536777;
  --taupe: #77736b;
  --gold: #beb174;
  --gold-warm: #c6a46a;
  --gold-light: #dbcc8b;
  --cream: #f1f0ec;
  --stone: #d7d2c9;
  --mist: #e6e5e1;
  --button-bg: #f5f5f5;
  --hero-from: #f8f6f1;
  --hero-to: #eeeae2;
  --white: #fff;

  /* Type */
  --font-serif: "Prata", Georgia, "Times New Roman", serif;
  --font-sans: "Lato", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(20px, 4.75vw, 68px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, p, address {
  margin: 0;
}

address {
  font-style: normal;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-weight: 400;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  border: 1px solid;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--light {
  min-width: 155px;
  height: 34px;
  padding-inline: 20px;
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  border-color: var(--gold);
}

.btn--light:hover,
.btn--light:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn--directions {
  min-width: 175px;
  height: 48px;
  padding-inline: 20px;
  font-size: 12px;
  color: var(--navy-deep);
  background: var(--button-bg);
  border-color: var(--gold-light);
}

.btn--directions:hover,
.btn--directions:focus-visible {
  background: var(--gold-light);
}

.btn--dark {
  min-width: 300px;
  height: 50px;
  padding-inline: 24px;
  font-size: 12px;
  color: var(--white);
  background: transparent;
  border-color: var(--gold-warm);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  background: var(--gold-warm);
  color: var(--navy-deep);
}

.btn:focus-visible {
  outline: 2px solid var(--gold-warm);
  outline-offset: 3px;
}

/* Header
   ========================================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--mist);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding-block: 10px;
}

.site-header__brand img {
  width: 158px;
}

.site-header__partner {
  width: 140px;
  margin-right: -8px; /* Figma: logo sits 60px from the right edge */
}

/* Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  aspect-ratio: 1440 / 580;
  max-height: 760px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--hero-from), var(--hero-to));
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.hero__inner {
  position: relative;
  max-width: none;
  padding-left: 54.17%; /* 780 / 1440 */
  padding-right: var(--gutter);
}

.hero__content {
  max-width: 520px;
}

.eyebrow {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--gold);
  margin-bottom: 5px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.08vw, 30px);
  line-height: 1.37;
  color: var(--navy);
}

.hero__title-sub {
  font-size: clamp(26px, 2.22vw, 32px);
  line-height: 1.34;
}

.hero__tagline {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.39vw, 20px);
  line-height: 1.35;
}

.hero__text {
  margin-top: 16px;
  max-width: 470px;
  font-size: 15px;
  line-height: 25px;
}

.hero__content .btn {
  margin-top: 22px;
}

/* Authorised dealer
   ========================================================================== */
.dealer {
  padding: 48px 0 53px;
  text-align: center;
  background: var(--white);
}

.dealer__logo {
  width: 222px;
  margin-inline: auto;
}

.dealer__title {
  margin-top: 15px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(22px, 2.22vw, 32px);
  line-height: 1.2;
  color: var(--navy);
}

.dealer__text {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--taupe);
}

/* Store / location
   ========================================================================== */
.store {
  padding: 33px 0 92px;
  background: var(--cream);
}

/* Figma columns: info 500 (incl. gap) | photo 470 + 14 gap | map 323 */
.store__grid {
  display: grid;
  grid-template-areas: "info photo map";
  grid-template-columns: minmax(0, 500fr) minmax(0, 484fr) minmax(0, 323fr);
}

.store__info {
  grid-area: info;
}

.store__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 2.43vw, 35px);
  line-height: 1.34;
}

.store__intro {
  margin-top: 11px;
  max-width: 300px;
  font-size: 17px;
  line-height: 27px;
}

.store__logo {
  width: 214px;
  margin-top: 30px;
}

.store__county {
  margin-top: 22px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.store__name {
  margin-top: 7px;
  font-size: 20px;
  line-height: 1.2;
}

.store__address {
  margin-top: 8px;
  font-size: 15px;
  line-height: 22px;
}

.store__address a {
  text-decoration: none;
}

.store__address a:hover {
  text-decoration: underline;
}

.store__info .btn {
  margin-top: 12px;
}

/* Photo and map share one fixed height so their top and bottom edges line up */
.store__photo,
.store__map {
  margin-top: 35px;
  height: 400px;
}

/* Cropped to fill the slot; centred slightly low on the jewellery trays */
.store__photo {
  grid-area: photo;
  width: calc(100% - 14px);
  object-fit: cover;
  object-position: center 60%;
  background: var(--stone);
}

.store__map {
  grid-area: map;
  background: var(--mist);
}

.store__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTA
   ========================================================================== */
.cta {
  padding: 63px 0 30px;
  text-align: center;
  color: var(--white);
  background: var(--navy-deep);
}

.cta__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.43vw, 35px);
  line-height: 1.34;
}

.cta .btn {
  margin-top: 37px;
}

.cta .container::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 65px;
  background: var(--slate);
}

/* Footer
   ========================================================================== */
.site-footer {
  padding: 15px 0 16px;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  color: var(--white);
  background: var(--navy);
}
/* Balanced line breaks keep headings from leaving a lone word behind */
h1, h2,
.hero__tagline,
.dealer__text,
.store__intro {
  text-wrap: balance;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Laptop / small desktop */
@media (max-width: 1200px) {
  .store__grid {
    grid-template-columns: minmax(0, 400fr) minmax(0, 484fr) minmax(0, 323fr);
  }
}

/* Tablet (641–1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .site-header__inner {
    min-height: 80px;
  }

  .site-header__brand img {
    width: 140px;
  }

  .site-header__partner {
    width: 118px;
    margin-right: 0;
  }

  /* Hero: portrait photo left, copy right */
  .hero {
    grid-template-columns: 44% 1fr;
    align-items: stretch;
    aspect-ratio: auto;
    max-height: none;
    min-height: 500px;
  }

  .hero__image {
    position: relative;
    height: 100%;
    object-position: 6% top;
  }

  .hero__inner {
    align-self: center;
    padding: 48px var(--gutter) 48px clamp(28px, 4.5vw, 48px);
  }

  .hero__text {
    max-width: 420px;
  }

  .dealer {
    padding: 56px 0;
  }

  /* Store: intro | contact on one row, photo + map below */
  .store {
    padding: 56px 0 64px;
  }

  .store__grid {
    grid-template-areas:
      "info  info"
      "photo map";
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }

  .store__info {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding-bottom: 24px;
  }

  .store__intro {
    max-width: 340px;
  }

  /* Same logo already sits directly above in the dealer section */
  .store__logo {
    display: none;
  }

  .store__contact {
    padding: 24px 28px;
    background: var(--white);
    border: 1px solid var(--mist);
  }

  .store__county {
    margin-top: 0;
  }

  .store__info .btn {
    margin-top: 16px;
  }

  .store__photo,
  .store__map {
    margin: 0;
    height: 340px;
  }

  .store__photo {
    width: 100%;
  }

  .cta {
    padding-top: 56px;
  }

  .cta .container::after {
    margin-top: 56px;
  }
}

/* Mobile (≤640px)
   ========================================================================== */
@media (max-width: 640px) {
  .site-header__inner {
    min-height: 64px;
  }

  .site-header__brand img {
    width: 116px;
  }

  .site-header__partner {
    width: 88px;
  }

  /* Hero: portrait photo on top, centred copy below */
  .hero {
    display: block;
    min-height: 0;
  }

  /* At 4:5 the model's face (~18.5% across the source) lands mid-frame */
  .hero__image {
    position: static;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 520px;
    object-position: 4% top;
  }

  .hero__inner {
    padding: 32px var(--gutter) 40px;
    text-align: center;
  }

  .hero__content {
    max-width: 420px;
    margin-inline: auto;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .hero__title {
    align-items: center;
  }

  .hero__tagline {
    font-size: 18px;
  }

  .hero__text {
    margin-inline: auto;
  }

  .btn {
    width: 100%;
    min-width: 0;
    max-width: 340px;
  }

  .btn--light {
    height: 48px;
  }

  .dealer {
    padding: 44px 0 48px;
  }

  .dealer__logo {
    width: 160px;
  }

  .dealer__title {
    margin-top: 18px;
    font-size: 21px;
    letter-spacing: 0.02em;
  }

  .dealer__text {
    font-size: 15px;
  }

  /* Store: intro, contact card, map, then photo */
  .store {
    padding: 44px 0 48px;
  }

  .store__grid {
    grid-template-areas:
      "info"
      "map"
      "photo";
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .store__info {
    display: block;
    padding-bottom: 12px;
  }

  .store__intro {
    font-size: 16px;
    line-height: 25px;
  }

  .store__contact {
    margin-top: 24px;
    padding: 24px 20px;
  }

  .store__info .btn {
    max-width: none;
    margin-top: 20px;
  }

  .store__map {
    height: 260px;
  }

  .store__photo {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .cta {
    padding-top: 48px;
  }

  .cta .btn {
    margin-top: 28px;
  }

  .cta .container::after {
    margin-top: 44px;
  }

  .site-footer {
    padding-inline: 16px;
  }
}
