/* =========================================================
   MOBILE FIRST.

   Everything outside a media query describes the PHONE.
   The one media query at the bottom adds room as the
   screen gets bigger. Build small, then earn your way up.
   ========================================================= */
:root {
  --background: #F5EFE6;
  --text:    #2B2724;
  --secondary:  #726759;
  --accent: #6E1A22;
  --page-width: 72rem;
}
*, *::before, *::after {
  box-sizing: border-box;
}
.nav a:focus-visible,
.nav_footer a:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

html {
  scroll-behavior: smooth;
}

input,
textarea,
button,
select {
  font-family: inherit;
  font-size: inherit;
}



body {
  margin: 0;
  background-color: var(--background);
  color: var(--text);
  font-family: "Karla", system-ui, sans-serif;
  line-height: 1.6;
  
}

/* Cormorant stays the DISPLAY face — headline and section headings.
   The logo is a wordmark and now runs on its own typeface (see .logo). */
.headline,
.Services_Title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
}

/* =========================================================
   THE HEADER - our first flexbox container
   ========================================================= */

.site-header {
  display: flex;            /* THE SWITCH. children now become flex items. */
  flex-direction: column;   /* stack them vertically (phone) */
  align-items: baseline;      /* centre them on the cross axis */
  gap: 1rem;                /* space BETWEEN children. no margins needed. */
  max-width:var(--page-width);
  margin: 0 auto;
  padding: 1.5rem;
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
}


/* THE WORDMARK — matched to the ASTREMOS lockup in the hero video.
   Light geometric sans, wide tracking, oxblood. Phone size here;
   it grows in the media query. */
.logo {
  font-family: "Jost", system-ui, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.35em;
  font-weight: 300;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
}                                                                                                         

/* .nav is a flex ITEM of .site-header,
   and ALSO a flex CONTAINER for the three links inside it. */
.nav {
  display: flex;
  gap: 1rem;
}

/* ".nav a" is a DESCENDANT selector - <a> tags inside .nav.
   The space between them means "inside of". */
.nav a {
  font-family: Arial, sans-serif;
  font-size: 1.5rem;
  letter-spacing: .10rem;
  text-transform: uppercase;
  color: var(--secondary);
  align-items:center;
  text-decoration: none;
  transition: color .25s ease-out;
  display: flex;
  flex-direction: column;
  align-items: baseline;
}

.nav a:hover {
  color: var(--accent);
}


/* =========================================================
   THE HERO
   ========================================================= */

.hero {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 3rem 1rem;  /* phone-sized. grows in the media query. */
  
}

.eyebrow {
  margin: 0 0 1.5rem;
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--secondary);
}

.headline {
  margin: 0 0 1.5rem;
  font-size: 3rem;      /* phone-sized. grows in the media query. */
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--accent);
}

.subhead {
  margin: 0 0 2.5rem;
  font-size: 1.5rem;
  color: var(--secondary);
  max-width: 50rem;
}

.button {
  display: inline-block;
  padding: 0.9rem 1rem;
  background-color: var(--text);
  color: var(--background);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background .25s ease-out;
}

.button:hover {
  background-color: var(--accent);
}

.contact {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1rem 1rem;
}

.contact-panel {
  padding: 0rem 0rem;
  font-size: 1.5rem;
  max-width: 40rem;
  margin: 0;
  color: var(--text);
  font-family: Arial, sans-serif;
  letter-spacing: 0.1em;
  transition: background .25s ease-out;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid var(--secondary);
  background-color: var(--background);
  color: var(--text);
  border-radius: .2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-panel:hover {
  color: var(--accent);
  font-style: bold;
}

.contact-panel summary {
  cursor: pointer;
  list-style: none;
}
/* the section box - matches .hero and .footer so the page
   keeps one consistent column width */
.Services {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.Services_Title {
  text-align: center;
}

.Services_List {
  display: flex;
  gap: 1rem 0rem;
  flex-direction: column;
}


.Services_Header {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: .005rem;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  max-width: 40rem;
  align-items: stretch; 
}

.Services_Desc {
  font-family: Arial, sans-serif;
  font-size: .75rem;
  letter-spacing: 0rem;
  color:var(--text);
  text-decoration: none;
  max-width: 40rem;
  align-items: stretch;
}

.gallery { 
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: .5rem;
  margin: 0 auto;
  max-width: var(--page-width);
  text-align: center;
}

.gallery-item {
  background-color: var(--secondary);
  color: var(--background);
  font-size: 2.5rem;
  padding: 2rem;
  aspect-ratio: 1; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.copyright {
  font-size: 0.75rem;
  color: var(--secondary);
  letter-spacing: .10rem;
  text-transform: uppercase;
  display:flex;                                          
}

.nav_footer {
  font-size: 0.75rem;
  font-family: Arial, sans-serif;
  color: var(--secondary);
  letter-spacing: .10rem;
  text-transform: uppercase;
  display: flex;
  gap: .5rem;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.5rem; 
}

.nav_footer a {
  color: var(--secondary);
  text-decoration:none;
  transition: color .25s ease-out;
}

.nav_footer a:hover {
  color: var(--accent);
}

              

/* =========================================================
   BIGGER SCREENS - now we ADD, rather than take away.
   Note: min-width, not max-width. This is mobile-first.
   ========================================================= */

@media (min-width: 40rem) {

  .site-header {
    flex-direction: row;              /* side by side instead of stacked */
    justify-content: space-between;   /* logo left, nav right */
    align-items: baseline;
    padding: 0.5rem;
  }

  .logo {
    font-size: 2.25rem;
  }

  .hero {
    padding: .5rem 0rem;
  }

  .headline {
    font-size: 3.5rem;
  }

  .Services {
    padding: 1rem 2rem;
  }

  .Services_Title {
    font-size: 2rem;
    font-weight: 600;
    padding: 1rem;
  }

  .Services_List{
    flex-direction: row;
    justify-content: space-between;
  }

  .Service {
    Flex:1;
  }
}

