/*Embedded Fonts */
@font-face {
    font-family: 'Cambon-Regular';
    src:url('../fonts/Cambon-Regular.woff2') format('woff2');
    src:url('../fonts/Cambon-Regular.woff') format('woff');
    src: url('../fonts/Cambon-Regular.ttf') format('ttf');
    font-display:swap;
}

@font-face {
    font-family:'TenezTest-Regular';
    src:url('../fonts/TenezTest-Regular.otf') format('otf');
    font-display:swap;
}

@font-face {
    font-family: 'CanelaDeck-Light';
    src:url('../fonts/CanelaDeck-Light-Trial.otf') format('otf');
    font-display:swap;
}

@font-face {
    font-family: 'Swiss 911 Compressed';
    src:url('../fonts/Swiss911CompressedRegular.otf') format('otf');
    font-display:swap;
}

@font-face {
    font-family: 'Neue Haas Grotesk Display Pro, 35 Thin';
    src: url('../fonts/NeueHaasDisplay-Thin.ttf') format('ttf');
    font-weight:35;
    font-style:normal;
    font-display:swap;
}

/* Base Styles */
:root {
    --primary-dark: #1a2332;
    --primary-light: #f8f6f3;
    --accent: #6b7c8e;
    --accent-dark:#303846;
    --accent-orange:#F09800;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --secondary-accent:#0D4B7A;
}

.darkened-accent-o {
    color: oklch(from var(--accent-orange) calc(l - 0.1) c h);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    font-family:inherit;
    color:inherit;
}

html {
    margin:0;
    padding:0;
    width:100%;
    font-size: 100%; /* 1rem = 10px */
}

body {
    color: var(--text-dark);
    background: var(--primary-light);
    font-family:'TenezTest-Regular';
    font-size: 1.4rem;
}

header, footer {
    margin:0;
    padding:0;
    width:100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight:normal;
    font-style:normal;
    padding:0;
    margin:0;
}
/* Rest of the CSS remains exactly the same */
h1 {
    font-family: 'TenezTest-Regular';
    font-size: 1.9rem; 
    line-height:2.6rem;
    margin-bottom:20px;
}
h2 {
    font-family: 'TenezTest-Regular';
    font-size: 1.4rem;
};
h3 { font-size: 1.3rem; };
h4 {font-size: 1.1rem; font-weight:35; };

a {font-family:'Neue Haas Grotesk Display Pro, 35 Thin';}

ul {margin-bottom: 1.2rem;}
li {
    color: var(--text-dark);
    font-size: 1.25rem;
}

ul, li {
    font-family:'TenezTest-Regular';
}

p {
    font-size:1.5rem;
    line-height:1.8rem;
    margin-bottom:20px;
}

/* Header & Navigation */
.header {
    background: var(--primary-light);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.45);
    border-bottom:1px solid #ccc;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width:100%;
    padding:0 40px;
}

.logo a{
    position: relative;
    display:flex;
    justify-content:left;
    width:100%;
    text-decoration:none;
    font-family: 'Swiss 911 Compressed';
    font-size: 2.8rem;
    color: #4c585e;
    font-weight: 500;
    /*text-shadow:0.2rem 0.2rem 0.2rem rgba(076, 88, 94, 0.15);*/
}

.main-nav {
    position: relative;
    display: flex;
    width:100%;
    justify-content:right;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.main-nav li {
    font-family:'Cambon-Regular';
    font-size:1.3rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    transition: color 0.3s; /* Smooth transition for color */
    position: relative;
    display: block;
    padding: 10px 0;
}

.main-nav a:hover {
    color: var(--primary-dark);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 0.2rem;
    background-color: var(--accent-orange);
    transition: width 0.7s ease; /* Transition for width */
}

.main-nav a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 200px;
    padding: 10px 0;
    display: none;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 4px;
    min-width: 100px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 0.1rem solid var(--border-color);
    max-height: 0;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 500px;
}

.dropdown-menu li {
    border-bottom: 0.1rem solid var(--border-color);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f0f0f0;
}

/* Positioning fix for dropdowns */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-dark);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 8rem 2rem 2rem;
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
    gap: 2rem;
    width: 100%;
    margin: 0;
    padding: 0;
}

.mobile-nav a {
    color: white;
    font-size: 1.5rem;
    font-weight: 400;
    padding: 1.5rem 0;
    display: block;
    text-decoration: none;
    border-bottom: 0.1rem solid rgba(255,255,255,0.1);
}

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

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;
}

/* Hamburger icon styles */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 10px;
    z-index: 1001;
}

.hero {
    margin:60px 0 0 0;
    border-bottom:0.1rem solid white;
    position: relative;
    height: 300px;
    background-image: url('../images/bluegold.jpg');
    background-position: center;
    background-size:cover;
    filter: contrast(1.45) brightness(1.15); /* Values above increase brightness */
}

.hero-tax {
    margin:60px 0 0 0;
    border-bottom:0.1rem solid white;
    position: relative;
    height: 300px;
    background-image: url('../images/graybluegold.jpg');
    background-position: center;
    background-size:cover;
    filter: contrast(1.45) brightness(1.15); /* Values above increase brightness */
}

.hero-law {
    margin:60px 0 0 0;
    border-bottom:0.1rem solid white;
    position: relative;
    height: 300px;
    background-image: url('../images/bluegoldvert.jpg');
    background-position: top;
    background-size:cover;
    filter: contrast(1.45) brightness(1.15); /* Values above increase brightness */
}

.hero-professionals {
    margin:60px 0 0 0;
    BORDER-BOTTOM:1px solid #FFF;
    position: relative;
    height: 300px;
    background-image: url('../images/bluegold.jpg');
    background-position: bottom;
    background-size:cover;
    filter: contrast(1.45) brightness(1.05); /* Values above increase brightness */
}

/* Overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background-color: rgba(0, 0, 0, 0.0);
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

.container p {
    font-size:1.5rem;
    line-height:2rem;
}
.description {
    padding:40px 0;
    background-color:#246A7F;
    text-align:center;
    margin-bottom:0;
}

/*Alternative Description Box inside Hero*/
/*CHANGE HERO HEIGHT TO 400PX */
/*.description {
    padding:40px;
    text-align:center;
    position:absolute;
    top:270px;
    min-width:90%;
    opacity:80%;
    background-color:#195B6C;
    margin:0 auto;
    display:block;
    left:5%;
}*/
.description h1 {
    font-family:'NeueHaasDisplay-Bold';
}


.description h2 {
    font-family: 'Neue Haas Grotesk Display Pro';                                            
    font-size: 1.4rem;
    line-height:1.6rem;
    font-weight:400;
    letter-spacing: 0.05rem;
}

.description h1, .description h2 {
    color:var(--primary-light);
    text-shadow: 0.2rem 0.2rem 0.4rem rgba(0, 0, 0, 0.5);
    border:none;
}

.welcome h1 {
    border-bottom:1px solid #ccc;
    font-family: 'CanelaDeck-Light';
    font-weight:400;
}

.welcome {
    background-color:white;
}

.welcome, .services, .law-firm,.legal-services, .attorney, .resources, .attorneys-cpas, .accounting {
  padding:80px 0;
  margin-bottom:0;
}

.professionals.annelstone {
    padding:80px 0 0 0;
}

.professionals.irenevlevy {
    padding:0 0 80px 0;
}

.legal-services h2, .attorney h2, .accounting h2 {
  text-align: center;
}

/* Footer Styles - Updated */
.footer {
    background: var(--primary-dark);
    color: white; /* Changed to white for both text and link */
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
}

.footer p {
    color: white;
    font-size: 1.15rem;
    font-family:'Neue Haas Grotesk Display Pro';
    letter-spacing: 0.03rem;
    word-spacing: 0.09rem;
    margin: 0;
}

.footer p a {color:white}

/* Services Section */
.services {
    background: #f5f3f0;
    margin-bottom:30px;
}

.services h1 {
    text-align:center;
    border-bottom: 1px solid var(--accent); 
  }

.service-card h3 {
    font-family:'Minion';
    margin-bottom: 10px;
    color: var(--primary-dark);
    text-align:center;
}

.services p {
    text-align:center;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-top: 40px;
}

.service-card {
    padding: 20px 0;
}

.services-btn {
    background-color:#246A7F;
    text-decoration:none;
    /*text-shadow:0.2rem 0.2rem 0.4rem rgba(0, 0, 0, 0.5);*/
    color:white;
    display:block;
    width:100%;
    /*border:0.1rem solid var(--secondary-accent);*/
    padding: 15px;
    text-align: center;
}
.services-btn:hover {
    text-decoration:none;
    background-color:var(--secondary-accent);
    color:#FFF;
    text-align: center;
}

.callout {
    font-family: 'Neue Haas Grotesk Display Pro, 35 Thin';
    font-weight:35;
    font-size:2.2rem;
    line-height:2.4rem;
}

/* Images Section */
.contact-section {
    padding: 60px 0;
    background: var(--accent-dark);
    color:#FFF;
}

.contact-section h1 {
    color:#FFF;
    border-bottom:1px solid #ccc;
    text-shadow: 0.2rem 0.2rem 3rem rgba(0, 0, 0, 0.5);
    padding-bottom:10px;
    margin-bottom:10px;
}

.contact-box {
    min-width: 300px;
}

.contact-box h3 {
    width: 100%;
    color: #FFF;
    font-family: 'NeueHaasDisplay-Bold';
    text-shadow: 0.2rem 0.2rem 3rem rgba(0, 0, 0, 0.5);
}

.contact-box p {
    color: #FFF;
    padding:0.5rem 0 0 0;
    text-shadow:0.3rem 0.32rem 3rem #1a2332;
}

.contact-box a, .contact-box a:hover {
    color:#FFF;
    text-decoration:none;
    padding-bottom:0.5rem;
}

.contact-grid-map {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    padding:60px 0;
}

.office {
    margin-bottom:0;
    /*border-bottom:1px solid var(--accent);*/
    width:160px;
}

.phone {
    margin-bottom:0;
    padding-top:20px;
    /*border-bottom:1px solid var(--accent);*/
    width:65px;
}

.email {
    margin-bottom:0;
    padding-top:20px;
    /*border-bottom:1px solid var(--accent);*/
    width:65px;
}

.map {
    background-image:url("../images/map-large.png");
    background-size: cover;
    background-repeat: no-repeat;
    display:block;
}

.email-disclaimer p {
    margin-bottom:10px;
    font-family:'TemezTest-Regular';
    text-shadow:0.3rem 0.32rem 3rem #1a2332;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 10px 0;

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Resources Section */
.resources {
    padding: 80px 0;
}

.resources h2 {
    text-align: center;
    margin-bottom: 40px;
}

.accordion {
    margin: 0 auto;
}

.photo-right {
    float:right;
    display:block;
    margin-left:40px;
    padding-left:50px;
    filter: brightness(1.15); /* Values above 1 increase brightness */
}

.resources-law-services {
  display:block;
  width:100%;
  margin:0 auto;
}

.accordion-item {
    border-bottom: 0.1rem solid var(--border-color);
    padding: 20px 0;
}

.accordion-item h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
}

.accordion-item p {
    margin-top: 10px;
    color: var(--text-light);
}

.legal {
    display:block;
    margin:0 auto;
    padding:10px 0 0 0;
  }

  .legal p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
  }

  .legal p a {
    text-decoration:underline;
    color: var(--text-light);
  }

/*Lawyer Bio Section on Law Practice Page*/
.professionals {
    background-color:white;
}

.professionals h1 {
    border-bottom: 1px solid var(--accent); 
    margin-left:240px;
  }

.bio-grid {
    display:block;
    width:100%;
}

.bio-columns {
    padding:40px 0;
}

.bio-columns:first-child{
    border-bottom:1px solid #ccc;
}

.bio {
    display:inline-block;
    min-width:325px;
    vertical-align:top;
}

.bio img {
    height:310px;
    width:210px;
}

.bio h3 {
    padding:0;
}

/*NEW BIO*/

.bio-section {
    padding:40px 0;
}

.photo {
    display:block;
    width:210px;
    height:310px;
    border:1px solid #ccc;
    background-color:var(--accent-dark);
    float:left;
    margin-right:30px;
    margin-bottom:10px;
}

.bio-text h2 {
    display:inline-block;
    border:none;
    margin-right:30px;
}

.bio-text h2 {
    font-size:1.5rem;
    display:inline-block;
}

.bio-text h2:first-of-type {
    padding-right:30px;
}

.bio-text h2:last-of-type {
    display:block;
    margin:10px 0 20px 0;
}

.bio-text h2:nth-type(1) {
   padding-left:30px;
}

.accordion {
    margin:0 auto 0 24px;
}

.accordion-hidden {
    display: none;
    margin-top: 15px;
}

.accordion-hidden.visible {
    display: block;
}

.accordion a {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

.accordion a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width:1130px) {
    .map {background-position:left;}

}
@media (max-width:1030px) {.contact-grid-map p{font-size:1.25rem;}
}
@media (max-width:990px) {.main-nav ul {gap:2rem;}
    .main-nav li {
    }
}

@media (max-width:920px) {.main-nav li {font-size: 1.25rem;}}
@media (max-width: 865px) {
    .hamburger {display: block;}
    .main-nav {display: none;}
    .services-grid {grid-template-columns: 1fr;}
    .image-grid {grid-template-columns: 1fr;}
    .container {padding:0;}
    .welcome, .services, .contact {padding:60px 0;}
    .map {display:none;}}

@media (max-width: 768px) {}
@media (max-width: 480px) {.container {padding:0;}}
