* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
}

header {
    background-color: #151515;
    padding: 0.1rem 1rem;
    min-height: 180px;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    width: 500px;
    max-width: 100%;
    height: 200px;
    max-height: 100%;
    object-fit: contain;
}

nav {
    align-self: flex-end;
    padding-bottom: 0px;
    margin-bottom: -16px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: stretch;
}

nav ul li {
    position: relative;
    text-align: center;
    font-family: Arial;
    flex: 1;
    font-size: large;
    line-height: normal;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    display: flex;              /* Make the anchor a flex container */
    align-items: center;        /* Vertically center the text */
    justify-content: center;    /* Horizontally center the text */
    height: 80px;               /* Keep your height */
    padding-top: 0;
    padding-right: 3.9rem;
    padding-left: 3.9rem;
    padding-bottom: 0;
}

nav ul li:hover {
    background-color: #2a2a2a;
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #434343;
    flex-direction: column;
    font-family: Arial;
    max-width: 100%;
    font-size: medium;
}

.submenu.open {
    display: block;
}

.submenu li a {
    display: flex;
    white-space: nowrap;
    justify-content: center;
}

hero {
  width: 100%;
  display: block;
}

.hero img {
  width: 100%;
  height: auto; /* Keeps image responsive */
  object-fit: cover; /* Ensures no distortion */
  display: block; /* Removes white space between hero and article*/
}
   

/* === Grid container for the whole section === */
.grid {
  display: grid;
  grid-template-columns: 1fr;   /* single column layout */
  gap: 1rem;
  justify-items: center;        /* center each item horizontally */
  text-align: center;           /* center text inside items */
  margin: 0 auto;
  padding: 1rem;
  max-width: 900px;
}

.grid > h2 {
  text-align: center;
  padding-top:3rem;
}

/* === Contact item card === */
.item {
  display: flex;
  align-items: center;          /* vertically center icon + content */
  flex-direction: row;          /* icon left of text */
  justify-content: flex-start;  /* left-align the row */
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02)) var(--card);
  width: 100%;
  max-width: 700px;             /* consistent card width for alignment */
  text-align: initial;          /* inherited text alignment */
}

.icon-wrap {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(37, 99, 235, 0.10);
  color: var(--primary);
}

.icon-wrap i { font-size: 1.25rem; }

.content {
  flex: 0 1 auto; /* allow content to size to its contents */
  /* width: auto;  default; can be omitted */
  text-align: inherit;
}

.label {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.15px;
}

.value,
.value a {
  color: var(--muted);
  text-decoration: none;
  word-break: break-word;
  text-align: center; /* If you prefer left alignment, change to 'left' and remove the hover 'inherit' below */
}

.value a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  /* text-align: inherit;  not needed */
}

/* === Maps section === */
.maps-section {
  margin-top: 0.5rem; /* Reduce space above maps */

  padding: 1rem;
  max-width: 1400px;            /* keeps the section tidy and centered */
}

.maps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 520px)); /* places cards next to each other */
  gap: 1.25rem;                 /* space between cards */
  justify-items: center;        /* center each map-card horizontally */
  justify-content: center;
}

.map-card {
  width: 100%;
  max-width: 620px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.map-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.15px;
  color: var(--foreground, #111);
}

.map-address {
  margin-bottom: 0.75rem;
  color: var(--muted, #555);
  line-height: 1.4;
  font-size: 0.95rem;
}

/* The key part: give the frame a real height via aspect-ratio */
.map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;  /* modern, simpler, reliable */
  border-radius: 10px;
  overflow: hidden;
  background: #f5f7fb;  /* optional: shows during loading / rounded corners */
}

/* Make the iframe fill the frame */
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block; /* avoids inline gaps */
}

/* Focus styles */
.item:focus-within {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}

.contact-form-section {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.5rem;
  border: 1px solid var(--border, #ccc);
  border-radius: 12px;
  background: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.contact-form-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}


.contact-form .form-group {
  display: flex;
  flex-direction: column; /* <-- fix */
  margin-bottom: 1rem;
}


.contact-form label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb; /* matches your primary color */
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

.btn-submit {
  background-color: #2563eb;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background-color: #1e4bb8;
}

  footer {
  background-color: #151515;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}



/* Responsive Breakpoints */
@media (max-width : 769px ){
	
html,body{
    overflow-x: hidden; /* Prevent horizontal scroll */
}
	
header {
    display: flex;
    flex-direction: column; /* Stack logo and nav vertically */
    align-items: center;
    padding: 0.5rem;
	padding-bottom: 0;
    box-sizing: border-box;
	position: relative;
}
	
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;              /* prevent flex shrinking */
    position: relative;
    z-index: 2;                  /* sit above nav if nav overlaps */
    order: 0;
}
	
.logo img {
    display: block;
    width: clamp(120px, 40vw, 220px); /* Smaller minimum */
    height: auto;
    max-width: 100%;
}
	
nav {
    background-color: rgba(21,21,21,1.00);
    width: 100%;
	z-index: 1;
	order: 1;
	margin-bottom: 0;
}
	
nav ul {
    flex-direction: column; /* Vertical nav */
    gap: 0.5rem;
    margin: 0;
}
	
nav ul li{
	position: relative;
}
	
nav ul li:hover > .submenu {
    display: flex;
}
	
nav ul li.active > a {
    background-color: #2a2a2a;   /* <- pick the highlight color you want */
    color: #ffffff;
}
	
nav ul li.submenu.open > a {
    background-color: var(tab-active);
}
	
nav ul li a {
    padding: 0.5rem 3.2rem; /* Reduce padding for mobile */
    height: auto;
    font-size: 1rem;
	position:relative; /* Anchor for submenu */
}
 
.submenu {
    display: none; /*Hide by defult(No hover)*/
    position: relative; /* Keep it in flow so it stacks below */
    width: 100%;
    flex-direction: column;
    z-index: 999;
    background: #151515;
    max-height: 0; /* Start collapsed */
    overflow: hidden; /* Hide content when collapsed */
    transition: max-height 280ms ease; /* Smooth slide */
    background-color: #434343;
    pointer-events: none;
}
	
.submenu li a {
}
	
.submenu.open {
    max-height: 500px; /* Enough to fit submenu items */
    display: flex;
    pointer-events: auto;
}

 
.contact-container {
            margin: 20px;
            padding: 20px;
        }
        h1 {
            font-size: 1.5rem;
        }
        .contact-item {
            flex-direction: column;
            align-items: flex-start;
            font-size: 1rem;
        }
        .contact-item i {
            margin-bottom: 5px;
        }
	
	.maps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  justify-items: center;   /* center each card */
  justify-content: center; /* center the grid as a whole */
	}

.grid {
    justify-items: center;   /* Center each item horizontally */
    text-align: center;      /* Center text inside */
  }

  .item {
    flex-direction: column;  /* Stack icon above text */
    align-items: center;     /* Center icon and text horizontally */
    justify-content: center; /* Center vertically */
    text-align: center;      /* Ensure text is centered */
  }
}

		








@media (min-width: 769px)  {
	
header {
    height: auto; /* Let height adjust naturally */
	display: flex;
    padding: 1rem 2rem; /* Add horizontal padding for large screens */
    flex-wrap:nowrap!important;/* Avoid wrapping unless needed */
 }
	
nav{
}
    
.logo img {
    width: clamp(200px, 25vw, 500px); /* Responsive scaling */
    height: auto;
    max-width: 100%; /* Prevent overflow */
    margin-left: 0; /* Avoid negative positioning */
}

nav ul li a {
    padding: 0 3.5em; /* padding responds to txt size change*, use clamp if you want it based on vw (view point) */
    font-size: clamp(.5rem, 1.5vw, 1.5rem); /* Responsive font size */
}
	
 /* Base: hidden by default */
nav .submenu { display: none; }

  /* Hover and pinned-open states */
nav li:hover > .submenu {
    display: block;
}
  	
submenu {
    background-color: #434343; /* ensure background applies on desktop */
    z-index: 1001;             /* in case it tucks under header */
}
	 
  .contact-container {
            max-width: 800px;
            padding: 40px;
        }
        h1 {
            font-size: 2rem;
        }
        .contact-item {
            font-size: 1.2rem;
        }
        .contact-item i {
            font-size: 24px;
        }
    }

	
