/*
Theme Name: Carleigh Gold (Elementor)
Theme URI: https://carleighgold.com/
Description: Child theme of Hello Elementor carrying the Carleigh Gold header, navigation, footer and brand palette. Page bodies are built in Elementor.
Author: The Buzz Marketing Co
Version: 1.0.0
Template: hello-elementor
Text Domain: carleigh-gold
*/

/* =====================================================================
   Chrome only. Page bodies are built in Elementor and are not styled
   here. Carried over from the previous custom theme's assets/site.css
   plus the brand palette that lived in Customizer > Additional CSS.
   ===================================================================== */

:root{
  --ink:#0B0B0B;
  --cream:#F4F0E8;
  --sand:#DFD4C3;
  --rust:#A14E30;
  --line:rgba(11,11,11,.18);
  --cg-gold:#C9A054;
  --cg-gold-ink:#6E5220;
  --cg-teal:#17705E;
  --cg-teal-deep:#0E5245;
  --cg-teal-night:#0F2E2A;
}

html{scroll-behavior:smooth;}

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:"DM Sans",sans-serif;
  font-size:15px;
  line-height:1.5;
}

.skip{
  position:absolute;
  left:-9999px;
}
.skip:focus{
  left:12px;
  top:12px;
  z-index:100;
  padding:10px 14px;
  background:var(--cg-gold);
  color:#0B0B0B;
}

/* ---------- announcement bar ---------- */
.announcement{
  background:var(--cg-teal);
  color:#F6F1E4;
  padding:10px 28px;
  font:500 10px "DM Mono",ui-monospace,monospace;
  letter-spacing:.13em;
  text-align:center;
}
.announcement span{padding:0 10px;}

/* ---------- header ---------- */
header{
  height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 4vw;
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(11,11,11,.94);
  color:#F4F0E8;
  border-bottom:1px solid rgba(201,160,84,.35);
  backdrop-filter:blur(10px);
}

/* The logo lockup replaces the CARLEIGH GOLD text wordmark. The link text
   stays in the markup, shifted off-screen, so screen readers and search
   engines still read the brand name. */
.brand{
  display:inline-block;
  width:186px;
  height:60px;
  background-image:url("/wp-content/uploads/2026/09/carleighgoldlogo.png");
  background-repeat:no-repeat;
  background-position:left center;
  background-size:contain;
  text-indent:-9999px;
  white-space:nowrap;
  overflow:hidden;
  color:inherit;
  text-decoration:none;
}
footer .brand{width:170px;height:55px;}

nav{display:flex;align-items:center;gap:28px;}
nav a,.text-link{
  color:inherit;
  text-decoration:none;
  font:500 11px "DM Mono",ui-monospace,monospace;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.nav-cta{
  border:1px solid var(--cg-gold);
  color:var(--cg-gold);
  padding:11px 15px;
  transition:background .2s ease,color .2s ease;
}
.nav-cta:hover,.nav-cta:focus-visible{background:var(--cg-gold);color:#0B0B0B;}
.menu{
  display:none;
  background:none;
  border:0;
  color:inherit;
  font:500 12px "DM Mono",ui-monospace,monospace;
  text-transform:uppercase;
}

/* ---------- gallery dropdown ---------- */
.nav-drop{position:relative;display:inline-flex;align-items:center;padding:45px 0;margin:-45px 0;}
.nav-drop>.nav-menu{
  position:absolute;
  top:100%;
  left:-18px;
  min-width:184px;
  display:flex;
  flex-direction:column;
  padding:8px 0;
  background:#0B0B0B;
  border:1px solid rgba(201,160,84,.35);
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s;
}
.nav-drop:hover>.nav-menu,.nav-drop:focus-within>.nav-menu{opacity:1;visibility:visible;transform:translateY(0);}
.nav-drop>.nav-menu a{display:block;padding:11px 20px;color:#F4F0E8;}
.nav-drop>.nav-menu a:hover,.nav-drop>.nav-menu a:focus-visible{color:var(--cg-gold);background:rgba(201,160,84,.10);}

/* ---------- footer ---------- */
footer{
  background:#0B0B0B;
  color:#F2ECDF;
  padding:42px 5%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
}
footer p{margin:0;color:#BDB6AA;}
footer span{font:10px "DM Mono",ui-monospace,monospace;}
footer .brand{color:#F2ECDF;text-decoration:none;}
.legacy-links{display:flex;gap:18px;flex-wrap:wrap;}
.legacy-links a{
  color:#F2ECDF;
  text-decoration:none;
  font:10px "DM Mono",ui-monospace,monospace;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.75;
  transition:opacity .2s;
}
.legacy-links a:hover{opacity:1;}

/* ---------- logo scale-up ---------- */
@media(min-width:900px){
  header{height:clamp(133px,14vw,160px);}
  .brand{width:clamp(288px,31vw,372px);height:clamp(93px,10vw,120px);}
  footer .brand{width:clamp(240px,26vw,320px);height:clamp(77px,8.4vw,103px);flex:none;}
}

/* ---------- mobile ---------- */
@media(max-width:750px){
  header{height:100px;padding:0 5vw;}
  .announcement{font-size:8px;padding:8px 5px;}
  .brand{width:200px;height:65px;}
  footer .brand{width:200px;height:65px;flex:none;}
  .menu{display:block;}
  nav{
    display:none;
    position:absolute;
    top:100px;
    left:0;
    right:0;
    padding:25px 5vw;
    background:#0B0B0B;
    flex-direction:column;
    align-items:flex-start;
    gap:20px;
    border-bottom:1px solid rgba(201,160,84,.35);
  }
  nav.open{display:flex;}
  .nav-drop{display:flex;flex-direction:column;align-items:flex-start;padding:0;margin:0;}
  .nav-drop>.nav-menu{
    position:static;
    opacity:1;
    visibility:visible;
    transform:none;
    border:0;
    box-shadow:none;
    background:none;
    padding:0;
    margin-top:16px;
    min-width:0;
    gap:14px;
  }
  .nav-drop>.nav-menu a{padding:0 0 0 16px;color:rgba(244,240,232,.72);}
  footer{padding:32px 7%;display:grid;gap:15px;flex-direction:column;align-items:flex-start;}
}
