/* 1. Font Face Declaration */
@font-face {
    font-family: 'Clarendon';
    src: url('../fonts/clarendon.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
  --main-font: 'Clarendon', serif;
  --body-font: 'Roboto', sans-serif; /* Keeping Roboto as a fallback for readability */
  --yellow: #FFD600;
  --orange: #FF9800;
  --black: #181818;
  --white: #FFF;
  --light-grey: #F5F5F5;
  --dark-grey: #333;
  --accent: #FFD600;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust this to match the height of your nav bar */
}

body {
  font-family: var(--body-font); /* Body text is easier to read in Roboto */
  background: var(--light-grey);
  color: var(--black);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Apply Clarendon to Headings */
h1, h2, h3, .cta-btn, nav a {
  font-family: var(--main-font);
}

/* Background Decorations */
.bg-shape { position: absolute; z-index: 0; pointer-events: none; }
.triangle-yellow { top: 0; left: 0; border-left: 300px solid var(--yellow); border-bottom: 200px solid transparent; }
.triangle-orange { bottom: 0; right: 0; border-right: 300px solid var(--orange); border-top: 200px solid transparent; }

/* Header & Nav */
header { 
  background: var(--black); 
  color: var(--yellow); 
  text-align: center; 
  padding: 2rem 1rem; /* Increased padding for better logo spacing */
  position: relative; 
}

header h1 { 
  font-size: 3rem; 
  margin: 1rem 0;
  animation: slideDown 1s cubic-bezier(.77,0,.18,1) both; 
}

header p {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

header img {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 214, 0, 0.4));
    transition: filter 0.3s ease;
}

header img:hover {
    filter: drop-shadow(0 0 20px rgba(255, 214, 0, 0.6));
}


/* Nav Styling */
nav {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav a { 
  color: var(--black); 
  text-decoration: none; 
  font-weight: 700; 
  font-size: 1.1rem;
  transition: color 0.3s ease; 
  position: relative;
}

nav a:hover, nav a.active { color: var(--orange); }

/* Navigation Underline Animation */
nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--orange);
  transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* Sections */
section {
  width: 100%; /* Go full width */
  max-width: none; /* Override previous 1100px */
  margin: 0; 
  padding: 10rem 0; /* Vertical breathing room */
}

/* Create a wrapper inside your index.php sections for the 1100px constraint */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section:nth-of-type(even) {
  background-color: var(--white); /* White background for even */
}

section:nth-of-type(odd) {
  background-color: #fcfcfc; /* Extremely subtle off-white for odd */
}

/* Why Choose Us needs a pop of color */
#why {
  background-color: var(--yellow);
  color: var(--black);
}

section.visible { opacity: 1; transform: translateY(0); }

h2 {
  color: var(--black);
  font-size: 3.5rem;
  border-left: 5px solid var(--yellow);
  padding-left: 15px;
  margin-bottom: 3rem;
}

section p {
  font-size: 1.25rem; /* Larger body text for better readability */
  line-height: 1.8;
  max-width: 800px; /* Prevents lines from getting too long to read */
}

/* Buttons */
.cta-btn {
  background: var(--yellow);
  color: var(--black);
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.cta-btn:hover {
  background: var(--orange);
  color: var(--white);
  transform: scale(1.05);
}

/* Services Grid */
.services { display: flex; flex-wrap: wrap; gap: 2rem; }
.service {
    flex: 1 1 350px;
    background: var(--white);
    border-bottom: 5px solid var(--yellow); /* Safety stripe at the bottom */
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.service h3 {
    margin-bottom: 1rem;
    color: var(--black);
    font-size: 1.5rem;
}

.service p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service ul {
    padding-left: 0;
    list-style: none;
}

.service ul li {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.service ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: bold;
}

.service:hover { 
  transform: translateY(-10px); 
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* Contact Form Styling */
.contact-info { display: flex; flex-wrap: wrap; gap: 3rem; }
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Individual Card Styling */
.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--yellow);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateX(10px);
    border-left-color: var(--orange);
}

/* Icons inside the cards */
.contact-icon {
    font-size: 2rem;
    background: var(--light-grey);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Text inside cards */
.contact-text h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-text p {
    margin: 0.2rem 0 0;
    font-size: 1rem;
    color: var(--dark-grey);
}

.contact-text a {
    color: var(--black);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.contact-text a:hover {
    color: var(--orange);
}

.contact-form { flex: 1; display: flex; flex-direction: column; gap: 1rem; }

.contact-form input, .contact-form textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--body-font);
}

.contact-form button {
  background: var(--black);
  color: var(--yellow);
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-family: var(--main-font);
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: var(--orange);
  color: var(--white);
}

/* The main container keeps items in a row */
.partners-grid {
    display: flex;
    flex-direction: row; /* Keep logos side-by-side */
    flex-wrap: wrap;     /* Allows them to wrap on mobile phones */
    justify-content: center;
    align-items: flex-start; /* Aligns them at the top of the row */
    gap: 4rem;           /* Generous space between the columns */
    padding: 2rem 0;
}

/* Each individual block stacks vertically */
.partner-item {
    display: flex;
    flex-direction: column; /* Stacks image then text */
    align-items: center;    /* Centers image and text horizontally */
    text-align: center;
    flex: 0 1 200px;       /* Sets a base width for each column */
}

/* The Logo styling */
.partner-item img {
    max-width: 100%;
    height: auto;
    max-height: 90px;      /* Consistent height for all logos */
    margin-bottom: 1rem;   /* Space between logo and name */
    transition: transform 0.3s ease;
}

/* The Partner Name styling */
.partner-name {
    font-family: var(--body-font);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* Interactive hover */
.partner-item:hover img {
    transform: scale(1.1);
}

.partner-item:hover .partner-name {
    color: var(--orange);
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.styled-box {
    background: var(--black);
    color: var(--yellow);
    padding: 4rem;
    font-family: var(--main-font);
    font-size: 2rem;
    border-radius: 20px;
    transform: rotate(-3deg); /* Add a slight tilt for character */
}

/* Footer */
footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 3rem 1rem;
  margin-top: 5rem;
}

/* Animations */
@keyframes slideDown { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Responsiveness */
@media (max-width: 768px) {
  nav { gap: 1rem; flex-wrap: wrap; }
  header h1 { font-size: 2.2rem; }
  section { margin: 2rem 1rem; }
}