/* Golda Interiors — RTL-first. Use logical properties (inline-start/end) so pages work in both directions. */
:root {
  --gold: #806a3d;
  --gold-dark: #6a5631;
  --ink: #1b1b1b;
  --text: #5e5e5e;
  --bg: #ffffff;
  --bg-soft: #f7f4ee;
  --footer: #000000;
  --serif: "Frank Ruhl Libre", "Playfair Display", Georgia, serif;
  --sans: "Rubik", Arial, sans-serif;
  --max: 1160px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 17px/1.75 var(--sans);
  text-align: start;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--gold); line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3, h4 { font-size: 22px; }
h4 { font-family: var(--sans); font-weight: 400; color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
bdi[dir="ltr"] { unicode-bidi: isolate; }

/* Header */
.site-header {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px var(--gutter) 16px;
  position: relative;
}
.logo img { width: 70px; height: 70px; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; letter-spacing: .02em; padding-block: 4px; border-block-end: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); border-block-end-color: var(--gold); }
.nav-toggle { display: none; }

@media (max-width: 767px) {
  .site-header { flex-direction: row; justify-content: space-between; padding-block: 12px; }
  .logo img { width: 54px; height: 54px; }
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-toggle summary { list-style: none; cursor: pointer; width: 32px; display: grid; gap: 6px; padding: 8px 0; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle summary span { display: block; height: 2px; background: var(--ink); }
  .nav-toggle[open] .nav {
    position: absolute; inset-inline: 0; top: 100%; z-index: 20;
    flex-direction: column; gap: 0; background: var(--bg); box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  .nav-toggle[open] .nav a { display: block; padding: 14px var(--gutter); border: 0; border-block-start: 1px solid #eee; }
}

/* Page container: everything is centered at --max unless it is .full */
.page { padding-block: 24px 64px; }
.page > * { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.page > .full { max-width: none; padding-inline: 0; }
.page > h1 { text-align: center; margin-block: 16px 32px; }
.page.center { text-align: center; }
.page:has(> .hero:first-child) { padding-block-start: 0; }

/* Section heading with a thin line on each side */
.section-title { display: flex; align-items: center; gap: 24px; text-align: center; }
.section-title::before, .section-title::after { content: ""; flex: 1; height: 1px; background: var(--gold); }

/* Buttons */
.btn {
  display: inline-block; background: var(--gold); color: #fff; text-decoration: none;
  font: 500 15px/1 var(--sans); padding: 14px 28px; border-radius: 999px; border: 1px solid var(--gold);
  cursor: pointer; transition: background .2s;
}
.btn:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-row { text-align: center; }
.split .btn-row { text-align: start; }

/* Hero: photo with a white box on it */
.hero {
  min-height: min(78vh, 640px); display: grid; place-items: center; text-align: center;
  background: center / cover no-repeat; margin-block-end: 56px; padding: 40px var(--gutter);
}
.hero-box { background: rgba(255,255,255,.9); padding: 40px 56px; max-width: 500px; }
.hero h1 { font-family: "Playfair Display", var(--serif); font-size: clamp(30px, 4vw, 40px); margin-block-end: .3em; }
.hero-text { color: var(--ink); font-size: 18px; line-height: 1.6; }
.hero-phone a { color: var(--text); text-decoration: none; font-size: 16px; }
@media (max-width: 767px) { .hero-box { padding: 28px 24px; } }

/* Boxes side by side: image on top, text below */
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; margin-block: 56px; text-align: center; }
.column img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; margin-block-end: 24px; }

/* Image + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-block: 56px; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-flip img { order: 2; }
.split-text h1 { margin-block-start: 0; }
@media (max-width: 767px) {
  .split { grid-template-columns: 1fr; gap: 20px; margin-block: 36px; }
  .split-flip img { order: 0; }
}

/* Gallery */
.gallery { margin-block: 48px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 14px; text-align: center; padding-block-start: 6px; }
.gallery-grid .gallery-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-masonry .gallery-track { columns: 3 260px; column-gap: 12px; }
.gallery-masonry figure { break-inside: avoid; margin-block-end: 12px; }
.gallery a:hover img { opacity: .85; }

/* One scrolling row */
.page > .gallery-strip { position: relative; max-width: none; padding-inline: 0; }
.gallery-strip .gallery-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.gallery-strip .gallery-track::-webkit-scrollbar { display: none; }
.gallery-strip figure { flex: none; scroll-snap-align: start; }
.gallery-strip img { height: 450px; width: auto; max-width: 85vw; object-fit: cover; }
.gallery-strip figcaption { display: none; }
.strip-btn {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.strip-prev { inset-inline-start: 16px; }
.strip-next { inset-inline-end: 16px; }
@media (max-width: 767px) { .gallery-strip img { height: 300px; } .strip-btn { display: none; } }

/* Fade in when scrolled into view (only once JS is running) */
.js .fade { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.js .fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .fade { opacity: 1; transform: none; transition: none; } }

/* Lightbox */
.lightbox-view {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9);
  display: grid; place-items: center; padding: 24px; border: 0; width: 100%; height: 100%; max-width: none; max-height: none;
}
.lightbox-view img { max-height: 90vh; width: auto; margin: auto; }
.lightbox-view button {
  position: absolute; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; padding: 8px 16px; line-height: 1;
}
.lightbox-view .lb-close { top: 8px; inset-inline-end: 8px; }
.lightbox-view .lb-prev { inset-inline-start: 8px; top: 50%; translate: 0 -50%; }
.lightbox-view .lb-next { inset-inline-end: 8px; top: 50%; translate: 0 -50%; }

/* Portfolio cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { text-decoration: none; color: var(--ink); text-align: center; }
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: opacity .2s; }
.card:hover img { opacity: .85; }
.card span { display: block; padding-block: 10px; font-size: 18px; }

/* Contact */
.contact { margin-block: 56px; }
.contact h2 { text-align: center; margin-block-end: 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-round { width: 100%; max-width: 480px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; justify-self: center; }
.contact-image { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.contact-info h4 { margin-block-start: 8px; }
.contact-line a { color: var(--gold); text-decoration: none; }
.btn-dark { background: #455a64; border-color: #455a64; border-radius: 4px; }
.btn-dark:hover { background: #34444c; }
.contact-form-toggle summary { list-style: none; display: inline-block; }
.contact-form-toggle summary::-webkit-details-marker { display: none; }
.contact-form { display: grid; gap: 14px; margin-block-start: 24px; max-width: 520px; }
.contact-form label { display: grid; gap: 4px; font-size: 15px; color: var(--ink); }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid #d6cfc0; background: #fff; border-radius: 4px;
}
.contact-form input[dir="ltr"] { text-align: end; }
.contact-form button { justify-self: start; }
@media (max-width: 767px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } .contact-round { max-width: 300px; } }

/* Welcome popup */
.popup { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: var(--gutter); opacity: 0; transition: opacity .4s; }
.popup.open { opacity: 1; }
.popup[hidden] { display: none; }
.popup-box { position: relative; background: #fff; width: min(420px, 100%); border-radius: 6px; overflow: hidden; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.popup-box img { width: 100%; aspect-ratio: 2.2 / 1; object-fit: cover; }
.popup-body { padding: 24px 28px 32px; }
.popup-body h2 { margin-block-end: .4em; }
.popup-body p { color: var(--ink); }
.popup-close { position: absolute; top: 10px; inset-inline-end: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* Social */
.social { text-align: center; margin-block: 56px; }
.social p { display: flex; gap: 20px; justify-content: center; }
.social a { color: var(--ink); transition: color .2s; }
.social a:hover { color: var(--gold); }

/* Blog */
.post-list { display: grid; gap: 24px; }
.post-card { display: grid; grid-template-columns: 280px 1fr; gap: 24px; text-decoration: none; color: var(--text); border-block-end: 1px solid #eee; padding-block-end: 24px; text-align: start; }
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-card h2 { font-size: 24px; margin-block: 4px 8px; }
.post-card time, .post time { font-size: 14px; color: #999; }
@media (max-width: 767px) { .post-card { grid-template-columns: 1fr; } }
.post > * { max-width: 760px; }
.post > h1 { text-align: start; margin-block: 8px; }
.post-image { margin-block: 24px; width: 100%; max-height: 520px; object-fit: cover; }
.post > .back, .post > time { display: block; }
.post .back { font-size: 14px; text-decoration: none; }

/* Footer */
.site-footer { background: var(--footer); color: #aaa; text-align: center; padding: 40px var(--gutter); font-size: 14px; }
.footer-links { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-contact { margin-block-end: 8px; }

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
