/*
Theme Name:   ApartmentABC Child
Theme URI:    https://apartmentabc.com
Description:  Blocksy child theme for ApartmentABC. Editorial homepage (front-page.php) + sitewide design tokens. Reused later by the single-post template.
Author:       ApartmentABC
Template:     blocksy
Version:      1.0.0
Text Domain:  apartmentabc-child
*/

/* =========================================================================
   1. DESIGN TOKENS  (sitewide — also used by the post template later)
   ========================================================================= */
:root {
  /* Color */
  --aabc-bg:            #f6f4f2;  /* warm off-white page bg */
  --aabc-surface:       #ffffff;
  --aabc-text:          #222222;  /* near-black body/headings */
  --aabc-text-muted:    #5a5650;
  --aabc-text-light:    #8a8578;
  --aabc-gold:          #b08d57;  /* primary accent */
  --aabc-gold-dark:     #92703f;  /* hover / darker accent */
  --aabc-gold-muted:    #5b5240;  /* deep brown-gold for depth */
  --aabc-image-bg:      #e0dcd4;  /* image placeholder / loading bg */
  --aabc-border:        #e6e1d9;

  /* Type */
  --aabc-font-body:     'Montserrat', system-ui, sans-serif;
  --aabc-font-display:  'Fraunces', Georgia, serif;   /* italic emphasis words only */

  /* Fluid spacing */
  --aabc-pad-inline:     clamp(24px, 4vw, 80px);
  --aabc-pad-block:      clamp(56px, 7.5vw, 120px);
  --aabc-pad-block-half: clamp(28px, 3.75vw, 60px);

  /* Motion — CSS transitions only, NO scroll-parallax JS */
  --aabc-ease:  cubic-bezier(0.15, 0.6, 0.07, 1);
  --aabc-dur:   0.5s;
}

/* =========================================================================
   2. HOMEPAGE  — everything scoped under .aabc-home so it can't leak sitewide
   ========================================================================= */
.aabc-home {
  background: var(--aabc-bg);
  color: var(--aabc-text);
  font-family: var(--aabc-font-body);
  font-weight: 400;
  overflow-x: hidden;              /* guard against skew-band overflow */
}
.aabc-home *,
.aabc-home *::before,
.aabc-home *::after { box-sizing: border-box; }

.aabc-home a { color: inherit; text-decoration: none; }

.aabc-section { padding-block: var(--aabc-pad-block); padding-inline: var(--aabc-pad-inline); }
.aabc-inner   { max-width: 1200px; margin-inline: auto; }

/* shared bits ------------------------------------------------------------- */
.aabc-kicker {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--aabc-gold); font-weight: 500; margin: 0 0 14px;
}
.aabc-em {                          /* Fraunces italic emphasis word */
  font-family: var(--aabc-font-display);
  font-style: italic; font-weight: 400; color: var(--aabc-gold);
}
.aabc-btn {
  display: inline-block; background: var(--aabc-gold); color: #fff;
  padding: 15px 30px; font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; border: 0; border-radius: 2px;
  cursor: pointer; transition: background var(--aabc-dur) var(--aabc-ease);
}
.aabc-btn:hover { background: var(--aabc-gold-dark); }

.aabc-imgph {                        /* image placeholder while empty/loading */
  background: var(--aabc-image-bg);
  width: 100%; height: 100%; display: block; object-fit: cover;
}

/* 2.0 HERO BANNER — CONTAINED panoramic band (matches reference): the image
   sits in a centered content-width frame with page-bg margins at the sides;
   a solid opaque white box overlaps the image's left edge. No full-bleed, no scrim. */
.aabc-banner {
  display: block;                             /* guard against a stale .aabc-banner{display:flex} */
  padding-inline: var(--aabc-pad-inline);    /* page-background whitespace at the sides */
  padding-top: clamp(12px, 2vw, 28px);
}
.aabc-banner__frame {
  display: block;
  position: relative;
  width: 100%;                                /* never collapse, even if a parent turns flex */
  max-width: 1200px;                          /* same content width as the rest of the page */
  margin-inline: auto;
  height: clamp(400px, 30vw, 480px);          /* shallow panoramic band, ~420-480px desktop */
}
.aabc-banner__img {
  position: absolute; top: 0; right: 0; bottom: 0;
  left: clamp(64px, 12%, 150px);               /* inset from the left so the box overhangs onto page bg */
  object-fit: cover; object-position: center;  /* whole room reads, centered */
}
.aabc-banner__box {                            /* big solid white box, left edge at the frame edge */
  position: absolute; top: 50%; left: 0;       /* overhangs the inset image onto the page background */
  transform: translateY(-50%);
  z-index: 2;
  background: var(--aabc-surface);             /* solid opaque white */
  padding: clamp(28px, 3.4vw, 48px) clamp(30px, 3.8vw, 58px);
  width: min(540px, 46vw);                     /* viewport-based so it never depends on the frame */
  max-width: 540px;
}
.aabc-banner__text {
  margin: 0;
  font-family: var(--aabc-font-display);       /* Fraunces serif (per request) */
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12;
  color: var(--aabc-text);
}
.aabc-banner__text .aabc-em { font-style: italic; color: var(--aabc-gold); }

/* 2.1 HERO ---------------------------------------------------------------- */
.aabc-hero .aabc-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 44px); align-items: center;
}
.aabc-hero__eyebrow {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--aabc-gold); margin: 0 0 16px;
}
.aabc-hero__title {
  font-weight: 300; font-size: clamp(34px, 5vw, 52px); line-height: 1.05;
  color: var(--aabc-text); margin: 0;
}
.aabc-hero__sub {
  color: var(--aabc-text-muted); font-size: 15px; line-height: 1.7;
  max-width: 340px; margin: 20px 0;
}

/* overlapping collage */
.aabc-collage { position: relative; height: clamp(300px, 38vw, 400px); }
.aabc-collage__item {
  position: absolute; overflow: hidden;
  border: 6px solid var(--aabc-bg);
  box-shadow: 0 6px 18px rgba(120,100,70,0.18);
  background: var(--aabc-image-bg);
}
.aabc-collage__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aabc-collage__a { top: 0;    right: 0;             width: 76%; height: 76%; }
.aabc-collage__b { bottom: 0; left: 0;              width: 58%; height: 62%; }
.aabc-collage__c { top: 18%;  left: 24%;            width: 52%; height: 56%; }

/* 2.2 SKEWED GOLD BAND ---------------------------------------------------- */
.aabc-pillars {
  background: var(--aabc-gold); color: #fff;
  transform: skewY(-2deg);
  margin-block: var(--aabc-pad-block-half);
  padding-block: var(--aabc-pad-block); padding-inline: var(--aabc-pad-inline);
}
.aabc-pillars .aabc-inner { transform: skewY(2deg); }   /* un-skew content */
.aabc-pillars__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 30px);
}
.aabc-pillar__title {
  font-family: var(--aabc-font-display); font-style: italic;
  font-size: 25px; margin: 0 0 8px; font-weight: 400;
}
.aabc-pillar__text { font-size: 12px; line-height: 1.6; opacity: 0.85; margin: 0; }

/* 2.3 BY THE ROOM --------------------------------------------------------- */
.aabc-rooms__head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.aabc-rooms__title { font-size: 34px; font-weight: 300; margin: 0; }
.aabc-rooms__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.aabc-rooms__grid > :nth-child(2),
.aabc-rooms__grid > :nth-child(4) { margin-top: 24px; }     /* stagger */
.aabc-room__img {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: var(--aabc-image-bg);
}
.aabc-room__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--aabc-dur) var(--aabc-ease);
}
.aabc-room:hover .aabc-room__img img { transform: scale(1.03); }
.aabc-room__label {
  display: block; text-align: center; margin-top: 12px;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--aabc-text-muted);
}

/* 2.4 MOST LOVED ---------------------------------------------------------- */
.aabc-loved__head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.aabc-loved__title { font-size: 34px; font-weight: 300; margin: 0; }
.aabc-loved__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.aabc-post__img {
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--aabc-image-bg); margin-bottom: 14px;
}
.aabc-post__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--aabc-dur) var(--aabc-ease);
}
.aabc-post:hover .aabc-post__img img { transform: scale(1.03); }
.aabc-post__cat {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--aabc-gold); margin: 0 0 6px;
}
.aabc-post__title {
  font-family: var(--aabc-font-body); font-weight: 500; font-size: 16px;
  line-height: 1.4; color: var(--aabc-text); margin: 0;
}

/* 2.5 IDENTITY / ABOUT ---------------------------------------------------- */
.aabc-about .aabc-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.aabc-about__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--aabc-image-bg); }
.aabc-about__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aabc-about__title { font-size: clamp(30px, 4vw, 44px); font-weight: 300; line-height: 1.1; margin: 0 0 20px; }
.aabc-about__text { color: var(--aabc-text-muted); font-size: 15px; line-height: 1.8; margin: 0 0 20px; max-width: 460px; }
.aabc-about__link { color: var(--aabc-gold); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.aabc-about__link:hover { color: var(--aabc-gold-dark); }

/* 2.6 SHOP CALLOUT -------------------------------------------------------- */
.aabc-shop { text-align: center; }
.aabc-shop__title { font-size: clamp(28px, 3.5vw, 38px); font-weight: 300; margin: 0 0 12px; }
.aabc-shop__text { color: var(--aabc-text-muted); font-size: 15px; line-height: 1.7; max-width: 460px; margin: 0 auto 26px; }
.aabc-shop__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 640px; margin: 0 auto 28px; }
.aabc-shop__thumb { aspect-ratio: 1 / 1; overflow: hidden; background: var(--aabc-image-bg); }
.aabc-shop__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 2.7 EMAIL CAPTURE ------------------------------------------------------- */
.aabc-email { text-align: center; }
.aabc-email__title { font-size: clamp(28px, 3.5vw, 38px); font-weight: 300; margin: 0 0 12px; }
.aabc-email__text { color: var(--aabc-text-muted); font-size: 15px; line-height: 1.7; max-width: 440px; margin: 0 auto 24px; }
.aabc-email__form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; }
.aabc-email__input {
  flex: 1 1 260px; background: var(--aabc-surface); border: 1px solid var(--aabc-border);
  border-radius: 2px; padding: 15px 16px; font-size: 14px; font-family: var(--aabc-font-body); color: var(--aabc-text);
}
.aabc-email__input:focus { outline: none; border-color: var(--aabc-gold); }

/* =========================================================================
   3. RESPONSIVE  — mobile-first ~85% traffic. Test at 375px.
   ========================================================================= */
@media (max-width: 991px) {
  .aabc-rooms__grid { grid-template-columns: repeat(3, 1fr); }
  .aabc-loved__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  /* banner: shallow band on phones; box eases in from the left edge.
     !important beats the inline styles on the frame/box for robustness. */
  .aabc-banner__frame { height: clamp(240px, 62vw, 320px) !important; }
  .aabc-banner__img   { left: 0 !important; }         /* full-frame image on phones */
  .aabc-banner__box   { left: 10px !important; width: auto !important; max-width: 80% !important;
                        padding: 16px 18px !important; }
  .aabc-banner__text  { font-size: clamp(22px, 6vw, 30px); }

  .aabc-hero .aabc-inner   { grid-template-columns: 1fr; }
  .aabc-hero__media        { order: 2; }                 /* headline first */
  .aabc-hero__text         { order: 1; }
  .aabc-hero__sub          { max-width: none; }

  /* mobile collage: single hero image only (best LCP) */
  .aabc-collage            { height: clamp(260px, 70vw, 360px); }
  .aabc-collage__b,
  .aabc-collage__c         { display: none; }
  .aabc-collage__a         { inset: 0; width: 100%; height: 100%; }

  .aabc-pillars            { transform: skewY(-1.5deg); }
  .aabc-pillars .aabc-inner{ transform: skewY(1.5deg); }
  .aabc-pillars__grid      { grid-template-columns: 1fr; gap: 22px; }

  .aabc-rooms__grid        { grid-template-columns: repeat(2, 1fr); }
  .aabc-rooms__grid > :nth-child(2),
  .aabc-rooms__grid > :nth-child(4) { margin-top: 0; }   /* drop stagger */

  .aabc-loved__grid        { grid-template-columns: 1fr; }
  .aabc-about .aabc-inner  { grid-template-columns: 1fr; }
  .aabc-about__img         { order: 1; }                 /* image first */
  .aabc-shop__thumbs       { grid-template-columns: repeat(4, 1fr); }
  .aabc-email__form        { flex-direction: column; }
  .aabc-btn                { width: 100%; }
}

/* =========================================================================
   4. HEADER / NAV  — sitewide. Overrides Blocksy's native header via CSS.
      (Real selectors confirmed from the live DOM: .site-logo-container,
       a.ct-menu-link, ul.sub-menu, #offcanvas.)
   ========================================================================= */

/* 4.0 Header bar -> beige, to blend seamlessly into the banner below it.
   Blocksy header is <header id="header" class="ct-header"> with [data-row]s. */
#header.ct-header,
#header.ct-header [data-row],
#header.ct-header [data-row] > .ct-container {
  background-color: var(--aabc-bg) !important;
}

/* 4.1 Logo — real image logo at ~40px. The two-weight CSS wordmark hack is
   removed; the logo set in Customizer (Site Identity) now shows natively.
   Enforce ~40px height and hide the duplicate site-title text. */
.site-logo-container {
  display: inline-flex;
  align-items: center;
}
.site-logo-container img {
  height: 40px !important;
  width: auto !important;
  max-width: none !important;
}
/* hide the Blocksy site-title text so there is no duplicate next to the logo */
.site-title-container,
.site-title { display: none !important; }

/* 4.2 Desktop nav items ----------------------------------------------------- */
.ct-menu-link {
  font-family: var(--aabc-font-body) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--aabc-text) !important;
  transition: color var(--aabc-dur) var(--aabc-ease);
}
.menu-item:hover > .ct-menu-link,
.ct-menu-link:hover,
.ct-menu-link:focus-visible {
  color: var(--aabc-gold) !important;
}
/* Active item -> gold underline (reference feel) */
.current-menu-item > .ct-menu-link,
.current-menu-ancestor > .ct-menu-link,
.current_page_item > .ct-menu-link {
  color: var(--aabc-gold) !important;
  text-decoration: underline;
  text-decoration-color: var(--aabc-gold);
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
}

/* 4.3 Dropdown submenus -> light panel -------------------------------------- */
.sub-menu {
  background: var(--aabc-surface) !important;
  border: 1px solid var(--aabc-border) !important;
  box-shadow: 0 10px 30px rgba(120, 100, 70, 0.12) !important;
  padding-block: 8px !important;
}
.sub-menu .ct-menu-link {
  color: var(--aabc-text) !important;
  font-size: 11px !important;
  letter-spacing: 1.5px;
  padding: 11px 24px !important;
}
.sub-menu .menu-item:hover > .ct-menu-link,
.sub-menu .ct-menu-link:hover {
  color: var(--aabc-gold) !important;
  background: var(--aabc-bg) !important;
}

/* 4.4 Mobile off-canvas menu -> same language, light bg --------------------- */
#offcanvas.ct-panel,
#offcanvas .ct-panel-content,
#offcanvas .ct-panel-content-inner {
  background: var(--aabc-bg) !important;
}
#offcanvas .ct-menu-link,
#offcanvas .menu-item > a {
  color: var(--aabc-text) !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px !important;
  font-weight: 500 !important;
}
#offcanvas .menu-item:hover > .ct-menu-link,
#offcanvas .ct-menu-link:hover,
#offcanvas .current-menu-item > .ct-menu-link {
  color: var(--aabc-gold) !important;
}
/* hamburger + close icon in brand charcoal */
.ct-header-trigger,
#offcanvas .ct-toggle-close { color: var(--aabc-text) !important; }
