/* BINARH STUDIO site styles. Theme values live in :root; components: site-header, hero, section,
   split, prose, slogan, gallery, button (primary / secondary / whatsapp), contact, hours, site-footer. */

@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap;
  src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap;
  src: url("../fonts/playfair-display-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap;
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --color-surface: #ffffff;
  --color-surface-muted: #ededed;
  --color-text: #1b1b1b;
  --color-text-muted: #6f6f6f;
  --color-heading: #777777;
  --color-on-dark: #ffffff;
  --color-action: #6e6e6e;
  --color-action-hover: #4f4f4f;
  --color-whatsapp: #455a64;
  --color-whatsapp-hover: #34474f;
  --color-line: #d9d9d9;
  --hero-image: image-set(url("../images/hero.jpg") 1x);
  --hero-image-small: url("../images/hero-small.jpg");
  --hero-tint: linear-gradient(rgb(0 0 0 / 0.2), rgb(0 0 0 / 0.2));
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --content-width: 70rem;
  --gutter: 1rem;
  --radius: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--color-surface); color: var(--color-text);
  font: 400 1rem/1.75 var(--font-body); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0 0 var(--space-2); }

/* site-header */
.site-header { display: flex; justify-content: center; padding: var(--space-2) var(--gutter); position: relative; }
.site-header::after { content: ""; position: absolute; left: 50%; bottom: -0.99rem; translate: -50% 0; z-index: 1;
  border: 1rem solid transparent; border-top-color: var(--color-surface); border-bottom: 0; }
.site-header__logo img { width: 19rem; max-width: 70vw; }

/* hero */
.hero { position: relative; color: var(--color-on-dark); padding: var(--space-5) var(--gutter) var(--space-3);
  background: #c4c4c4 center / cover no-repeat; background-image: var(--hero-tint), var(--hero-image);
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.35); }
@media (max-width: 40rem) { .hero { background-image: var(--hero-tint), var(--hero-image-small); } }
.hero__inner { max-width: var(--content-width); margin: 0 auto; display: flex; align-items: center; gap: var(--space-3); min-height: 30rem; }
.hero__text { flex: 1 1 30rem; max-width: 34rem; }
.hero__lead { font-size: 1.2rem; line-height: 1.6; letter-spacing: 0.02em; }
.hero__title { font: 400 clamp(2.4rem, 6vw, 4.3rem)/1.2 var(--font-display); margin-bottom: var(--space-3); }
.hero__ring { flex: 0 1 18rem; width: 18rem; opacity: 0.95; }
.hero__contact { display: flex; flex-direction: column; align-items: center; margin: var(--space-4) 0 0; font-size: 1.15rem; }
.hero__contact a { text-decoration: none; }
@media (max-width: 40rem) {
  .hero__inner { flex-direction: column; align-items: flex-start; min-height: 0; }
  .hero__ring { align-self: center; width: 10rem; }
}

/* button: primary / secondary / whatsapp */
.button { display: inline-block; padding: 0.95rem 2rem; border: 0; border-radius: var(--radius);
  font: 700 0.8rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  text-shadow: none; cursor: pointer; }
.button--primary { background: var(--color-action); color: var(--color-on-dark); }
.button--primary:hover, .button--primary:focus-visible { background: var(--color-action-hover); }
.button--secondary { background: transparent; color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-action); }
.button--secondary:hover, .button--secondary:focus-visible { background: var(--color-surface-muted); }
.button--whatsapp { background: var(--color-whatsapp); color: var(--color-on-dark); text-transform: none; letter-spacing: 0.02em; font-size: 1rem; }
.button--whatsapp:hover, .button--whatsapp:focus-visible { background: var(--color-whatsapp-hover); }

/* section */
.section { max-width: var(--content-width); margin: 0 auto; padding: var(--space-5) var(--gutter) var(--space-3); }
.section__title { font: 400 clamp(1.8rem, 4vw, 2.3rem)/1.3 var(--font-display); color: var(--color-heading);
  text-align: center; margin-bottom: var(--space-4); }

/* split: media beside text */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-4); align-items: start; }
.split--center { align-items: center; }
.split__media { justify-self: center; }
.split__media--ring { width: 15rem; }
@media (max-width: 48rem) { .split { grid-template-columns: 1fr; } .split__media--ring { width: 10rem; } }

/* prose: long text blocks */
.prose h3 { font-size: 1.35rem; letter-spacing: 0.04em; margin: var(--space-3) 0 var(--space-1); }
.prose h3:first-child { margin-top: 0; }
.prose a { color: var(--color-text-muted); }

/* slogan */
.slogan { text-align: center; }
.slogan__places { font-size: 1.4rem; letter-spacing: 0.06em; margin-bottom: var(--space-2); }
.slogan__what { font-weight: 700; margin-bottom: 0; }

/* gallery: scroll-snap track; js/gallery.js adds arrows and thumbnails */
.gallery { position: relative; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: 4px; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; }
.gallery__slide img { width: 100%; height: min(36rem, 62vw); object-fit: contain; background: var(--color-surface); }
.gallery__slide figcaption { margin-top: var(--space-1); text-align: center; font-size: 0.95rem; }
.gallery__arrow { position: absolute; top: calc(min(36rem, 62vw) / 2); translate: 0 -50%; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.45); color: var(--color-on-dark); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.gallery__arrow:hover, .gallery__arrow:focus-visible { background: rgb(0 0 0 / 0.7); }
.gallery__arrow--prev { left: var(--space-1); }
.gallery__arrow--next { right: var(--space-1); }
.gallery__thumbs { display: flex; gap: 0.5rem; overflow-x: auto; padding: var(--space-2) 0 0.25rem; justify-content: safe center; scrollbar-width: thin; }
.gallery__thumb { flex: 0 0 auto; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: 0.65; }
.gallery__thumb img { width: 4.4rem; height: 4.4rem; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--color-action); opacity: 1; }
.gallery__thumb:hover, .gallery__thumb:focus-visible { opacity: 1; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 48rem) { .contact { grid-template-columns: 1fr; } }
.contact__heading { font-size: 1.35rem; letter-spacing: 0.04em; margin: var(--space-3) 0 var(--space-2); }
.contact__column > .contact__heading:first-child { margin-top: 0; }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.contact__address { font-style: normal; margin-bottom: var(--space-2); }
.contact a:not(.button) { color: var(--color-text-muted); }

/* hours */
.hours { border-collapse: collapse; }
.hours th { text-align: left; font-weight: 400; padding: 0.15rem var(--space-3) 0.15rem 0; }
.hours td { padding: 0.15rem 0; color: var(--color-text-muted); }

/* site-footer */
.site-footer { background: var(--color-surface-muted); color: var(--color-text-muted); margin-top: var(--space-5);
  padding: var(--space-4) var(--gutter) var(--space-3); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: -1rem; translate: -50% 0;
  border: 1rem solid transparent; border-bottom-color: var(--color-surface-muted); border-top: 0; }
.site-footer__inner { max-width: var(--content-width); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.6; }
.site-footer a { text-decoration: none; }
.site-footer__nav { display: flex; justify-content: center; gap: var(--space-3); margin-top: var(--space-3); font-size: 0.95rem; }
.site-footer__nav a:hover, .site-footer__nav a:focus-visible { text-decoration: underline; }

/* page: simple text pages */
.page { max-width: 46rem; margin: 0 auto; padding: var(--space-5) var(--gutter) var(--space-3); }
