/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  --primary: #c9a07a; /* Muted Gold */
  --primary-dark: #b08d6a;
  --secondary: #f9f4f0; /* Soft Cream */
  --accent: #eaddcf; /* Taupe/Beige */
  --text: #2c2c2c;
  --text-light: #666;
  --white: #ffffff;
  --black: #1a1a1a;
  --bg-soft: #fdfaf8;

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shadow: 0 10px 30px rgba(0,0,0,0.05);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--white);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Header & Navigation --- */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo {
  height: 100px;
  width: auto;
}

header h1 {
  margin: 0;
  font-size: 1.5em;
  letter-spacing: 2px;
  color: var(--black);
  text-transform: uppercase;
}

.mobile-nav-toggle {
  display: none;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--primary);
}

nav ul li a:hover::after {
  width: 100%;
}

/* --- Hero Section --- */
.hero {
  height: 80vh;
  min-height: 500px;
  background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
              url('https://cdn.pixabay.com/photo/2016/11/29/05/07/adult-1867471_1280.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-content {
  max-width: 800px;
}

.hero h2 {
  font-size: 3.5em;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  font-weight: 300;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--primary);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 0.8em;
  transition: var(--transition);
  border: 1px solid var(--primary);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn:hover {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-3px);
}

/* --- Content Sections --- */
.content-section {
  padding: 100px 0;
}

.highlight {
  background-color: var(--bg-soft);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h3 {
  font-size: 2.5em;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background-color: var(--primary);
}

/* --- Flex Layout --- */
.flex-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.flex-layout.reverse {
  flex-direction: row-reverse;
}

.text-box {
  flex: 1;
}

.image-box {
  flex: 1;
}

.image-box img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.text-box h3 {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: var(--black);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: 30px;
}

.card-content h4 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--black);
}

.more-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
}

/* --- Contact Section --- */
.contact-wrapper {
  display: flex;
  gap: 50px;
}

.contact-info-block {
  flex: 1;
}

.contact-map-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
  height: 300px;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


.map-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--black);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Footer --- */
footer {
  background-color: var(--black);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

footer p {
  opacity: 0.7;
  font-size: 0.9em;
  margin-bottom: 20px;
}

footer nav ul {
  justify-content: center;
}

footer nav ul li {
  margin: 0 15px;
}

footer nav ul li a {
  color: var(--white);
  opacity: 0.5;
  font-size: 0.8em;
}

footer nav ul li a:hover {
  opacity: 1;
}

/* --- Modals --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
}

.modal:target {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  padding: 50px;
  border-radius: 5px;
  width: 90%;
  max-width: 700px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2em;
  text-decoration: none;
  color: var(--black);
  line-height: 1;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .flex-layout, .flex-layout.reverse {
    flex-direction: column;
    text-align: center;
  }
  .hero h2 {
    font-size: 2.5em;
  }
  .contact-wrapper {
    flex-direction: column;
  }

  header {
    padding: 10px 0;
  }

  .header-logo {
    height: 60px;
  }

  .mobile-nav-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000;
  }

  .hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
  }

  .hamburger::before { top: -8px; }
  .hamburger::after { bottom: -8px; }

  /* Navigation open state */
  .nav-open .hamburger { background: transparent; }
  .nav-open .hamburger::before { transform: rotate(45deg); top: 0; }
  .nav-open .hamburger::after { transform: rotate(-45deg); bottom: 0; }

  nav ul {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 120px;
    padding-bottom: 40px;
    z-index: 1500;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  nav ul.show {
    transform: translateX(0);
  }

  nav ul li {
    margin: 15px 0;
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    font-size: 1.3em;
    display: block;
    padding: 10px 0;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

